class Student(object):
    def __init__(self, no,name, age,sex,high,
                 weight, grade, address, phone):
        self.no = no
        self.name = name
        self.age = age
        self.sex = sex
        self.high = high
        self.weight = weight
        self.grade = grade
        self.address = address
        self.phone = phone
    def get_info(self):
        print("学号：",self.no)
        print("姓名：",self.name)
        print("年龄：",self.age)
        print("性别：",self.sex)
        print("身高：",self.high,"cm")
        print("体重：",self.weight,"kg")
        print("班级：",self.grade)
        print("地址：",self.address)
        print("电话：",self.phone)

    def studying(self,study_time):
        self.study_time = study_time
        print("我已经学习了：",study_time,"小时")

    def playgame(self,game_name):
        self.game_name = game_name
        print("我正在玩：",game_name,"游戏")
    def code(self,num_lines):
        self.num_lines = num_lines
        print("我正在写代码：",num_lines,"行")
    def sum(self,args):
        self.sum_result = sum(args)
        print("求和结果为：",self.sum_result)

class xiaoMing(Student):
    def __init__(self, no,name, age,sex,high,
                 weight, grade, address, phone):
        super().__init__(no,name, age,sex,high,
                 weight, grade, address, phone)
        self.study_time = 10
        self.game_name = "王者荣耀"
        self.num_lines = 1000
        self.sum_result = 0
    def studying(self,study_time):
        self.study_time = study_time
        print("小明已经学习了：",study_time,"小时")

    def playgame(self,game_name):
        self.game_name = game_name
        print("小明正在玩：",game_name,"游戏")
    def code(self,num_lines):
        self.num_lines = num_lines
        print("小明正在写代码：",num_lines,"行")
    def sum(self,args):
        self.sum_result = sum(args)
        print("小明求和结果为：",self.sum_result)
    def get_info(self):
        print("学号：",self.no)
        print("姓名：",self.name)
        print("年龄：",self.age)
        print("性别：",self.sex)
        print("身高：",self.high,"cm")
        print("体重：",self.weight,"kg")
        print("班级：",self.grade)
        print("地址：",self.address)
        print("电话：",self.phone)
        print("学习时间：",self.study_time,"小时")
        print("正在玩的游戏：",self.game_name)
        print("正在写的代码行数：",self.num_lines)
        print("求和结果：",self.sum_result)

xiaoming = xiaoMing(1001,"小明", 18, "男", 170, 60, 10, "北京市海淀区", "13812345678")
xiaoming.studying(12)
xiaoming.playgame("王者荣耀")
xiaoming.code(1000)
xiaoming.sum([1,2,3,4,5])
xiaoming.get_info()